<template>
  <div class="title flex justify-between items-center">
    <div>{{ title }}</div>
    <slot></slot>
  </div>
</template>
<script setup>
defineProps({
  title: {
    type: String,
    default: ''
  }
})
</script>
<style lang="less" scoped>
.title {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
  padding-left: 16px;
  font-weight: 600;
  &::after {
    position: absolute;
    top: calc(50% - 8px);
    left: 0;
    width: 4px;
    height: 16px;
    background-color: var(--primary-color);
    content: '';
  }
}
</style>
